/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package readwritefile;

import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author sochy
 */
public class DemoRead {

    public static void main(String[] args) {

        MyFile file = new MyFile();

        List<String> list;
        try {
            list = file.readSmallTextFile("c:\\test\\bbb.txt");
            for (String line : list) {
                System.out.println(line);
            }
        } catch (Exception ex) {
            System.out.println("Hello Error file");
        }

    }
}
